
public class EulerProblem6 {
    int sumOfSquares(int number){
        int    sumOfSquares =0;
        for(int i=1;i<=number;i++){
         sumOfSquares=sumOfSquares+i*i;
        }
        return sumOfSquares;
    }
    int squareOfSum(int number){
        int squareOfSum=0;
        for(int i=1;i<=number;i++){
           squareOfSum =squareOfSum+i;
        }
        return squareOfSum*squareOfSum;
    }
    public static void main(String []arg){
       System.out.print(new EulerProblem6().squareOfSum(100)-new EulerProblem6().sumOfSquares(100));
    }

}
